package com.qf.dao;

import com.qf.dto.QueryDTO;
import com.qf.pojo.SysMenu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author Zhengjz
 * @version 1.0
 * @className SysMenuMapper
 * @date 2021/1/27 14:05
 */
@Repository
public interface SysMenuMapper {

    List<String> findPermsByUserId(Long userid);

    List<SysMenu> findMenuByPage(QueryDTO query);

    List<Map<String,Object>> findDirMenuByUserId(@Param("userId") Long userId);

    List<Map<String,Object>> findMenuNotButtonByUserId(@Param("userId") Long userId,@Param("parentId") Long parentId);
}
